package cn.doitedu.flink.demo;

public class Digui {
    static int sum = 0;

    public static int add(int num){
        if(num>3){
            sum += num;
            num = num-1;
            add(num);
        }else{
            sum += 3;
        }
        return sum;

    }

    public static void main(String[] args) {
        System.out.println(add(6));
    }
}
